package com.huc.netty.example.consumer;

import com.huc.netty.example.api.IUserService;
import com.huc.netty.example.consumer.proxy.RpcClientProxy;

/**
 * @author huc
 * @version 1.0
 * @note
 * @date 2021/9/16 11:29
 */
public class TestRun {
    public static void main(String[] args) {
        RpcClientProxy rcp=new RpcClientProxy();
        IUserService userService=rcp.clientProxy(IUserService.class,"127.0.0.1",8080);
        System.out.println(userService.saveUser("张三"));
    }
}
